<div class="layuimini-container">
    <div class="layuimini-main">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('procurement.product_maps/add')}"
               data-auth-edit="{:auth('procurement.product_maps/edit')}"
               data-auth-delete="{:auth('procurement.product_maps/delete')}"
               lay-filter="currentTable">

        </table>
    </div>
</div>
<script type="text/html" id="barDemo">

    <a class="layui-btn layui-btn-xs " lay-event="detail" data-open="supplier.OrderTaking/detail?id={{ d.id }}" data-table="currentTableRenderId">详情</a>


    {{#  if(d.status != "已出货"){ }}
        {{#  if(d.status != "已接单"){ }}
        <a class="layui-btn layui-btn-xs layui-btn-success" data-direct="true" data-request="supplier.OrderTaking/get_order?id={{ d.id }}"  data-table="currentTableRenderId">接单</a>

        {{#  } }}
        {{#  if(d.status != "已拒单"){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" data-open="supplier.OrderTaking/cancel?id={{ d.id }}"  data-table="currentTableRenderId">拒单</a>
        {{#  } }}
    {{#  } }}
</script>


